package com.service.order;

import com.common.ErrorCodeEnum;
import com.common.emums.DataStatus;
import com.common.exception.BusinessException;
import com.common.utils.StringUtils;
import com.core.springSecurity.common.SecurityUtils;

import com.dao.order.OrderTaskRecordInfoMapper;
import com.model.domain.order.GetOrderTaskRecordInfoDO;
import com.model.pojo.order.OrderTaskRecordInfo;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import com.github.pagehelper.PageHelper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;



/**
 * @Author: zql
 * @Description: 农机作业信息服务
 * @Data: 2023-09-09
 */
@Slf4j
@Service
@RequiredArgsConstructor
public class OrderTaskRecordInfoService {
    private final OrderTaskRecordInfoMapper orderTaskRecordInfoMapper;
    public List<OrderTaskRecordInfo> getPageList(GetOrderTaskRecordInfoDO getOrderTaskRecordInfoDO){
        PageHelper.clearPage();
        PageHelper.startPage(getOrderTaskRecordInfoDO.getPage(),getOrderTaskRecordInfoDO.getPageSize(),getOrderTaskRecordInfoDO.getSortRow()+getOrderTaskRecordInfoDO.getSortOrder());
        return orderTaskRecordInfoMapper.selectList(getOrderTaskRecordInfoDO);
    }
}
